<?php
// +----------------------------------------------------------------------
//            -------------------------
//           /   / ----------------\  \
//          /   /             \  \
//         /   /              /  /
//        /   /    /-------------- /  /
//       /   /    /-------------------\  \
//      /   /                   \  \
//     /   /                     \  \
//    /   /                      /  /
//   /   /      /----------------------- /  /
//  /-----/      /---------------------------/
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://baimifan.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: Sage 2016/4/19  14:05
// +----------------------------------------------------------------------

namespace Common\Model;
use Think\Model;

/*
 * Parameter参数表
 * */
class ParameterModel extends Model
{
    protected $tableName = 'Parameter';
    //获取所有的配置参数
    function getList(){
        $d=$this->where()->field("para_k,para_v")->select();
        return $d;
    }
    //获取某一键的值
    function getPara($key){
        $d=$this->where("para_k=$key")->field("para_k,para_v")->find();
        return $d;
    }
    //设置某一键的值
    function setPara($key){

    }


}